<?php
namespace app\serverfund\validate;
use \app\manage\validate\BaseValidate;

class CurrencyOptionLog extends BaseValidate
{

    protected $rule = [
        'user_ids' => ['length'=>'1,256'],
        'user_id' => ['integer', 'gt' => '0'],
        'type' => ['in'=>['init','prepaid','transfer','freeze','unfreeze']]
    ];
    protected $message = [
        'type' => 'type不在允许的范围内'
    ];
    protected $scene = [
        'list' => ['page', 'list_rows'],
        'listByUserIds' => ['page', 'list_rows', 'user_ids'],
        'listByUserType' => ['page', 'list_rows', 'user_id', 'type'],
    ];
}
